package com.guo.hui.config;

import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

/**
 * @ClassName PasswordUtil
 * @Description TODO
 * @Author zhengguohui
 * @Date 2018/9/3 16:09
 */
@Component
public class EncryptionUtil {

    public static PasswordEncoder passwordEncoder() {
        return PasswordEncoderFactories.createDelegatingPasswordEncoder();
    }
}
